﻿namespace ConstructorAsyncWebApi.Extensions
{
    public static class MiddlewareConfigure
    {
        public static void ConfigureMiddleware(this WebApplication app)
        {
            // Configure the HTTP request pipeline.

            app.UseAuthorization();

            app.MapControllers();

            app.UseSwagger();

            app.UseSwaggerUI();
        }
    }
}
